[OSPP 2022] DeepRec supports exporting models to key-value NoSQL databases -> The first feature submission#470
Open
MrRobotsAA wants to merge 3 commits intoDeepRec-AI:mainfrom
Open
[OSPP 2022] DeepRec supports exporting models to key-value NoSQL databases -> The first feature submission#470MrRobotsAA wants to merge 3 commits intoDeepRec-AI:mainfrom
MrRobotsAA wants to merge 3 commits intoDeepRec-AI:mainfrom
Conversation
…here will be update submissions in the future.
candyzone
reviewed
Oct 18, 2022
| void DumpEvWithGlobalStep(OpKernelContext* context, int variable_index, | ||
| const string& tensor_name, BundleWriter& writer, | ||
| DataType global_step_type) { | ||
| void DumpEvWithGlobalStep(OpKernelContext* context, int variable_index, const string& tensor_name, BundleWriter& writer, DataType global_step_type) { |
|
|
||
| const int kFixedInputs = 3; // Prefix, tensor names, shape_and_slices. | ||
| const int num_tensors = static_cast<int>(tensor_names.NumElements()); | ||
| const int num_tensors = static_cast<int>(tensor_names.NumElements()); //获取tensor个数 |
| const auto& shape_and_slices_flat = shape_and_slices.flat<tstring>(); | ||
|
|
||
| BundleWriter writer(Env::Default(), prefix_string); | ||
| const int Nosql_Marker = 0; |
Collaborator
There was a problem hiding this comment.
统一变量命名规则,小写下划线
这个是不是逻辑未完成,需要传入参数控制
| Status AppendSegmentData(char* content, int64 data_bytes_written); | ||
| void EndSegmentData(int64 total_bytes_written, int64 end_bytes_written); | ||
| // Partitioned variables support. | ||
| // A slice of a full tensor is stored in two entries in the metadata table: |
Collaborator
|
issue #341 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Complete the first feature submission, please do not merge for now, there will be update submissions in the future.